package com.example.springbootsenior.task.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @classDesc: 功能描述:定时任务
 * @author: 李明杰
 * @date: 2021/11/20 15:14
 * @copyright
 */
@Service
public class ScheduledService {

    //10 * * * * ?
    @Scheduled(cron = "0 0 0 * * ?")
    public void hello() {
        System.out.println("定时任务:hello....");
    }
}
